﻿using System;
using System.Collections.Generic;

namespace Storage.Client
{
    public interface IStorageClient<T>
    {
		/// <returns>If true, item was added to storage. If false, existing item with same id was updated.</returns>
    	bool AddOrUpdate(IEntity<T> entity);
    	bool TryRead(Guid id, out IEntity<T> entity);
    	IEnumerable<IEntity<T>> ReadAllOfType();
	    bool Delete(Guid id);
    }
}
